package com.doradance.account;


import com.doradance.common.http.UrlBase;

import static com.doradance.common.http.UrlBase.URL_PREFIX;

/**
 * url center
 *
 * @Author: PV
 * @E-mail: pengveivei@sina.cn
 * @CreateDate: 2016/7/18 15:04
 * @Version: 1.0.0
 */
public class UrlCenter {

    private static final String URL_HEAD = "/v1.0";

    /**
     * 明星学员
     */
    public final static String STARSTUDENTS = UrlBase.URL_PREFIX + URL_HEAD + "/starstudents/%1$d";


    /**
     * 活动分页查询列表
     */
    public final static String ACTIVIES = UrlBase.URL_PREFIX + URL_HEAD + "/activities/hot";

    /**
     * 获取社团分类
     */
//    public final static String GET_ORG_TYPE = UrlBase.URL_PREFIX + URL_HEAD + "/club/categories";


    /**
     * 获取token
     */
    public final static String TOKEN = URL_PREFIX+"/appLogin/login";

    /**
     * 微信登录
     */
    public final static String WX_LOGIN = URL_PREFIX+URL_HEAD+"/weixin/authorize ";
    /**
     * 自动登录
     */
    public final static String AUTOLOGIN = URL_PREFIX+"/appLogin/autoLogin ";
    /**
     * 获取验证码
     */
    public final static String CODE =URL_PREFIX+ URL_HEAD +"/captcha?type=%1$d&phone=%2$s";
    /**
     * 验证验证码
     */
    public final static String YZCODE =URL_PREFIX+ URL_HEAD +"/captcha/verify?type=%1$d&phone=%2$s&code=%3$s";
    /**
     * 所有标签
     */
    public final static String ALLTAGS =URL_PREFIX+ URL_HEAD +"/course/tags";
    /**
     * 热门标签
     */
    public final static String HOTTAGS =URL_PREFIX+ URL_HEAD +"/course/tags/hot";
    /**
     * 宝宝列表
     */
    public final static String BABYLIST =URL_PREFIX+ URL_HEAD +"/babies/list";

    public final static String ADDBABY =URL_PREFIX+ URL_HEAD +"/babies";
    /**
     * 新增宝宝
     */
    public final static String LOGIN =URL_PREFIX+ URL_HEAD +"/login";
    /**
     * 新增宝宝
     */
    public final static String BABIES_ITEM =URL_PREFIX+ URL_HEAD +"/babies";

    /**
     * 删除宝宝
     */

    public final static String BABY_DELETE =URL_PREFIX+ URL_HEAD +"/babies/%1$d";
    /**
     * 免费专区
     */
    public final static String FREE_LIST =URL_PREFIX+ URL_HEAD +"/courses/free";

    /**
     * 意见反馈
     */
    public final static String POST_FEEDBACK =URL_PREFIX+ URL_HEAD +"/feedback";

    /**
     * 免费专区
     */
    public final static String COURSES_FAVORITE_LIST =URL_PREFIX+ URL_HEAD +"/courses/favorite";
    /**
     * 学过的课程
     */
    public final static String START_VIDEO =URL_PREFIX+ URL_HEAD +"/babies/self/courses";


    /**
     * 会员等级
     */
    public final static String COURSES =URL_PREFIX+ URL_HEAD +"/courses";
    /**
     * 学过课程
     */
    public final static String LEARNED_COURSE =URL_PREFIX+ URL_HEAD +"/babies/%1$d/courses";

    /**
     * 取消收藏、以及收藏
     delete /user/event/favorite/course/{courseIds}
     */
    public final static String FAVORITE_CANCEL =URL_PREFIX+ URL_HEAD +"/user/event/favorite/course/%1$s";

    /**
     * 课程详情
     */
    public final static String COURSES_ID =URL_PREFIX+ URL_HEAD +"/courses/%1$s";
    /**
     * 课程列表
     */
    public final static String VIP =URL_PREFIX+ URL_HEAD +"/vip";
    /**
     * 会员开通/升级/充值
     */
    public final static String PAY_VIP =URL_PREFIX+ URL_HEAD +"/pay/vip";
    /**
     * 会员开通/升级/充值
     */
    public final static String COURSE_COMMENTS =URL_PREFIX+ URL_HEAD +"/course/comments";

    /**
     * 个人中心
     */
    public final static String USERS_HOME =URL_PREFIX+ URL_HEAD +"/users/home";

    /**
     * 个人中心
     */
    public final static String USERS_SELF =URL_PREFIX+ URL_HEAD +"/users/self";
    /**
     * 个人中心
     */
    public final static String LEARN_RECORDS =URL_PREFIX+ URL_HEAD +"/learning/records";
    /**
     * 修改手机号码
     */
    public final static String USERS_PHONE =URL_PREFIX+ URL_HEAD +"/users/phone";

    /**
     * 首页
     */
    public final static String INDEX =URL_PREFIX+ URL_HEAD +"/index";
    /**
     * 所有评价增量获取
     */
    public final static String ALL_COMMENTS =URL_PREFIX+ URL_HEAD +"/course/comments/increment";

    /**
     * 分享回调
     */
    public final static String SHARE_BACK =URL_PREFIX+ URL_HEAD +"/chapters/%1$d/onshare";

    /**
     * 排行榜
     */
    public final static String RANK_LEARNING =URL_PREFIX+ URL_HEAD +"/rank/learning";
    /**
     * 宝宝主页
     */
    public final static String BABY_HOME =URL_PREFIX+ URL_HEAD +"/babies/%1$d/home";

    /**
     * FAQ
     */
    public final static String FAQS =URL_PREFIX+ URL_HEAD +"/faqs";

    /**
     * 单图上传
     */
    public final static String IMGAGE =URL_PREFIX+ URL_HEAD +"/uploader/image";

    /**
     * 广场头部 ImageView
     */
    public final static String TOP_IMAGE =URL_PREFIX+"/banner/list";
    /**
     * 刷新token
     * token
     */
    public final static String TOKEN_REFRESH = "http://uc.dev.xmmodo.com" + "/token/refresh/%1$s";
    /**
     * 注册
     */
    public final static String REGISTER = URL_PREFIX + "/uc/user/register";
    /**
     * 课程首页
     */
    public final static String COURSES_INDEX = URL_PREFIX + URL_HEAD+"/courses/index";
    /**
     * 课程首页
     */
    public final static String COURSES_LIST = URL_PREFIX + URL_HEAD+"/courses";

    /**
     * 获取用户信息
     */
    public final static String USER = URL_PREFIX + URL_HEAD+"/user";

    /**
     * 获取用户信息
     */
    public final static String WEB_CHECK_UPDATE = URL_PREFIX + URL_HEAD + "/static/checkupdate.json";


    /**
     * web 版本更新
     */
    public final static String UPLOAD_PORTRAIT = URL_PREFIX + "/res/upload/portrait/112237";


    /**
     * 分类 -》 列表
     */
    public final static String COMMUNITY_TYPES = URL_PREFIX + URL_HEAD + "/commmunity/type";

    /**
     * 分类 -》 二级列表
     */
    public final static String COMMUNITY_TYPE_CHILDS = URL_PREFIX + URL_HEAD + "/commmunity/type/child";

    /**
     * 帖子列表
     */
    public final static String COMMUNITY_ARTICLE = URL_PREFIX + URL_HEAD + "/commmunity/article";

    /**
     * 帖子-喜欢
     */

    public final static String COMMUNITY_LIKE = URL_PREFIX + URL_HEAD + "/commmunity/article/like";
    /**
     * QINIU_TOKEN
     */
    public final static String QINIU_TOKEN = URL_PREFIX + URL_HEAD + "/qiniu/uptoken";
    /**
     * QINIU_TOKEN
     */
//    public static final String OUTER_LINK = "http://ogeo9cgq3.bkt.clouddn.com/";
    public static final String OUTER_LINK = "http://oo1e5sko2.bkt.clouddn.com/";


    /**
     * 获取评论列表
     */
    public final static String COMMENT_LIST = URL_PREFIX + URL_HEAD + "/commmunity/reply";

    /**
     * 点赞与取消点赞
     */
    public final static String ARTICLE_LIKE = URL_PREFIX + URL_HEAD + "/commmunity/article/like/%1$s";

    /**
     * 帖子详情
     * 帖子id
     */
    public final static String GET_ARTICLE_DETAILS = URL_PREFIX + URL_HEAD + "/commmunity/article/%1$s";
    /**
     * 更新帖子
     */
    public final static String UPDATE_ARTICLE = URL_PREFIX + URL_HEAD + "/commmunity/article/share/%1$s";

    /**
     * 阿里支付
     */
    public final static String ALIPAY_INFO= URL_PREFIX+URL_HEAD+"/app/alipay/%1$s";
    /**
     * 微信支付
     */
    public final static String WECHAT_PAYINFO= URL_PREFIX+URL_HEAD+"/app/wxpay/%1$s";

    /**
     * 上传用户头像
     */
    public final static String UPLOAD_USERHEAD = "http://static.binvshe.com:2016/res/upload";
    /**
     * 批量上传
     */
    public final static String UPLOAD_MULIT = "http://static.binvshe.com:2016/res/upload/multi";
//    public final static String UPLOAD_USERHEAD=UrlBase.URL_PREFIX+"/res/upload/portrait/%1$s";
}
